package bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Folder entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "folder", catalog = "es_knowledge_base")
public class Folder implements java.io.Serializable {

	// Fields

	private Integer folderId;
	private String folderName;
	private Integer belongTo;
	private String folderPath;
	private String folderPermission;
	private String folderDesc;

	// Constructors

	/** default constructor */
	public Folder() {
	}

	/** minimal constructor */
	public Folder(String folderName, Integer belongTo, String folderPath) {
		this.folderName = folderName;
		this.belongTo = belongTo;
		this.folderPath = folderPath;
	}

	/** full constructor */
	public Folder(String folderName, Integer belongTo, String folderPath,
			String folderPermission, String folderDesc) {
		this.folderName = folderName;
		this.belongTo = belongTo;
		this.folderPath = folderPath;
		this.folderPermission = folderPermission;
		this.folderDesc = folderDesc;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "folder_id", unique = true, nullable = false)
	public Integer getFolderId() {
		return this.folderId;
	}

	public void setFolderId(Integer folderId) {
		this.folderId = folderId;
	}

	@Column(name = "folder_name", nullable = false, length = 100)
	public String getFolderName() {
		return this.folderName;
	}

	public void setFolderName(String folderName) {
		this.folderName = folderName;
	}

	@Column(name = "belong_to", nullable = false)
	public Integer getBelongTo() {
		return this.belongTo;
	}

	public void setBelongTo(Integer belongTo) {
		this.belongTo = belongTo;
	}

	@Column(name = "folder_path", nullable = false, length = 200)
	public String getFolderPath() {
		return this.folderPath;
	}

	public void setFolderPath(String folderPath) {
		this.folderPath = folderPath;
	}

	@Column(name = "folder_permission", length = 45)
	public String getFolderPermission() {
		return this.folderPermission;
	}

	public void setFolderPermission(String folderPermission) {
		this.folderPermission = folderPermission;
	}

	@Column(name = "folder_desc", length = 200)
	public String getFolderDesc() {
		return this.folderDesc;
	}

	public void setFolderDesc(String folderDesc) {
		this.folderDesc = folderDesc;
	}

}